#include"UdpServer.hpp"

int main()
{  

    shared_ptr<Manage> manage=make_shared<Manage>();


    UdpServer server([&manage]( int sockfd, const std::string &message)->void{manage->Router(sockfd,message);}
                                        ,[&manage](InterAddr&addr)->bool{manage->AddUser(addr);});
    server.Init();
    server.Start();
    return 0; 
}